<!--
 * @Description: 
 * @Version: 1.0
 * @Autor: Strong
 * @Date: 2021-04-16 11:24:25
 * @LastEditors: Strong
 * @LastEditTime: 2021-04-20 17:42:09
 * @FilePath: \mf\themes\web\zhtw\list_faq.html
-->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="{$common.description}">
  <meta name="keywords" content="{$common.keywords}">
  <meta name="author" content="STRONG">
  <title>{$common.title}</title>
  <!--#include file="resources.html"-->
</head>

<body>
  <!--#include file="head.html"-->

  <div class="page-banner" style="background-image: url({$info.image});">
    <h2 data-aos="fade-right">{$info.subname}</h2>
  </div>


  <div class="index-page">
    <div class="title">
      <hr>
      <h1>WEB網站作品一覽</h1>
    </div>
    
    <div class="list-app">
      <div class="tab-nav">
        <!--foreach:{$duowei $vo2}-->
        <ul>
          <?php 
          if($vo2['field']=="faqtype"){
              $exturl2=model('category')->duowei_url($all_field,$getinfo,'faqtype',0);	   

              foreach($vo2['config'] as $key=>$value){
              
                  foreach($value as $key2=>$value2){  
                  $exturl=model('category')->duowei_url($all_field,$getinfo,'faqtype',$value2);
                      if($value2==$_GET['faqtype']){
                          echo '<li class="a01"><a href="#faq'.$value2.'">'.$key2.'</a></li>';
                  }else{
                          echo '<li><a href="#faq'.$value2.'">'.$key2.'</a></li>';
                  }   		   
              }
              }
          } 
          ?>
        </ul>
        <!--/foreach--> 
      </div>
      <div class="list-faq">
        <!--foreach:{$duowei $vo3}-->
        <?php 
          foreach($vo3['config'] as $key=>$value){
            foreach($value as $key2=>$value2){  
              echo '<h3 class="h3">'.$key2.'</h3>';
              echo '<ul id="faq'.$value2.'">'
          ?>
            
           
              <!--foreach:{$loop $vo}-->
                <!--if:{ $vo['faqtype']==$value2}-->
                <li>
                  <div class="panel-header">{$vo.title}</div>
                  <div class="panel-body">
                    <?php echo(html_entity_decode($vo['content'])); ?>
                  </div>
                </li>
                <!--/if-->
              <!--/foreach-->
            </ul>
          <?php }} ?>
         <!--/foreach-->
      </div>

    </div>
 
  </div>
  <!--#include file="foot.html"-->
</body>
<!--#include file="js.html"-->
<script>
   $(".list-faq li").on("click", ".panel-header", function() {
      var next = $(this).next();
      next.slideToggle("slow");
      $(this).toggleClass('down')

      $(".panel-header").not($(this)).removeClass('down');
      $(".panel-body").not(next).slideUp();
  })
</script>
</html>